package com.gxh.dto;

import com.gxh.entity.MachineImage;
import com.gxh.entity.MachineVideo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
@ApiModel (description = "设备新增修改数据传输对象")
public class MachineDTO implements Serializable {

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("机械设备名称或规格")
    private String name;

    @ApiModelProperty("机械设备分类id")
    private Long categoryId;

    @ApiModelProperty("机械设备品牌")
    private String brand;

    @ApiModelProperty("设备使用系统")
    private String machineSystem;

    @ApiModelProperty("设备出厂的年份")
    private Integer year;

    @ApiModelProperty("设备数量")
    private Integer quantity;

    @ApiModelProperty("用户设备价格")
    private BigDecimal customPrice;

    @ApiModelProperty("同行设备价格")
    private BigDecimal peerPrice;

    @ApiModelProperty("设备位置id")
    private Long locationId;

    @ApiModelProperty("描述信息")
    private String description;

    @ApiModelProperty("设备类型1:仓库现货，2:工厂在位")
    private Integer type;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("创建人")
    private Long createUser;

    @ApiModelProperty("修改人")
    private Long updateUser;

    @ApiModelProperty ("设备视频列表")
    private List<MachineVideo> videos = new ArrayList<>();

    @ApiModelProperty ("设备图片列表")
    private List<MachineImage>  images = new ArrayList<>();
}
